package com.test.demo.controller;

import com.test.demo.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/account")
public class AccountController {

    @Autowired
    private AccountService accountService;

    @RequestMapping(value = "/trans")
    public void trans() throws Exception{
         accountService.trans();
    }

    @RequestMapping(value = "/update")
    public void update() throws Exception{
        accountService.update();
    }
}
